package com.typhoon.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shuya | dongfeng.zdf@alibaba-inc.com
 * @description
 * @date 2018/10/16 下午10:03
 * @description
 * @modified by
 * @since V2.0.0
 */
@Api("首页接口")
@RestController
public class IndexController {

    @ApiOperation(value = "问候语",notes = "获取首页问候语")
    @ApiImplicitParam(name = "name",value = "名称",required = true,dataType = "string")
    @GetMapping("/hello")
    public String hello(String name) {
        return "hello,world!";
    }


}
